Page({
  data: {
    // 图片前缀路径 - (全局)
    PictureUrl: getApp().PictureUrl,
    Id: null,
    Goods: null
  },

  onLoad: function (options) {
    wx.setNavigationBarTitle({
      title: "申请售后"
    })
    this.setData({
      Id: JSON.parse(options.Goods).Id,
      Goods: JSON.parse(options.Goods)
    })
  },

  onShow: function () {

  },

  // 点击仅换货
  Barter: function(){
    wx.navigateTo({
      url: '../Barter/Barter?Goods=' + JSON.stringify(this.data.Goods),
    })
  },

  // 点击仅退款
  Refund: function(){ 
    wx.navigateTo({
      url: '../Refund/Refund?Goods=' + JSON.stringify(this.data.Goods),
    })
  },

  // 点击退款/换货
  Refunds: function(){ 
    wx.navigateTo({
      url: '../Refunds/Refunds?Goods=' + JSON.stringify(this.data.Goods),
    })
  },
})